package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

/**
 *注册用户
 */
@Getter
@Setter
public class User extends BaseDomain{
    public static final Integer GENDER_SECRET = -1;
    public static final Integer GENDER_MALE = 0;
    public static final Integer GENDER_FEMALE = 1;
    //邮箱
    private String email;
    //昵称
    private String nickName;
    //密码
    private String password;
    //地区
    private String place;
    //头像
    private String headImgUrl;
    //性别
    private Integer gender;
    //封面
    private String coverImgUrl;
    //签名
    private String sign;

    //游记数
    private int travelNum;

    //关联发送信息数,切对方没有接收
    private Integer unreadNum;

    //关联最后一条消息对象
    private ChatMessage chatMessage;

    public String getGenderString(){
        String temp = "保密";
        if (gender==GENDER_MALE){
            temp = "男";
        }else if (gender==GENDER_FEMALE){
            temp = "女";
        }
        return temp;
    }
}